import client from './client/paymentClient'

// 柜面领款查询
const getCounterPaymentData = async (params) => {
  const result = await client.postAsync({
    url: '/getCounterPaymentData', 
    params
  });
  return result
}
//主动支付查询
const getProactivePaymentData = async (params) => {
  const result = await client.postAsync({
    url: '/getProactivePaymentData', 
    params
  });
  return result
}
//险种查询
const getClasses = async(params)=>{
  const result = await client.postAsync({
    url: '/getClasses', 
    params
  });
  return result
}
//代理点查询
const getProxyPoint = async(params)=>{
  const result = await client.postAsync({
    url: '/getProxyPoint', 
    params
  });
  return result
}
//获取提取人
const getTransactorcode = async(params)=>{
  const result = await client.postAsync({
    url: '/getTransactorcode', 
    params
  });
  return result?.data?.data
}
//部门查询
const getDepartment = async(params)=>{
  const result = await client.postAsync({
    url: '/getDepartment', 
    params
  });
  return result
}
//提交
const submitData = async (params) => {
  const result = await client.postAsync({
    url: '/submitData', 
    params
  });
  return result
}
//影像审核
const imageAudit = async (params) => {
  const result = await client.postAsync({
    url: '/imageAudit', 
    params
  });
  return result
}
//获取省
const getProvince = async (params)=>{
  const result = await client.postAsync({
    url: '/getProvince', 
    params
  });
  return result.data.data
}
//获取市
const getCity = async (params)=>{
  const result = await client.postAsync({
    url: '/getCity', 
    params
  });
  return result?.data?.data
}
//获取区
const getArea = async (params)=>{
  const result = await client.postAsync({
    url: '/getArea', 
    params
  });
  return result?.data?.data
}

export {
  getCounterPaymentData,
  getProactivePaymentData,
  getClasses,
  getProxyPoint,
  getDepartment,
  getTransactorcode,
  submitData,
  imageAudit,
  getProvince,
  getCity,
  getArea
}
